#ifndef QHISTORYDATABASEWIDGET_H
#define QHISTORYDATABASEWIDGET_H

#include "../../libs/device/qbasedefine.h"

#include <QWidget>
#include <QProgressDialog>
class QDeviceManager;
class QHistoryDatabaseView;

class QHistoryDatabaseWidget : public QWidget
{
    Q_OBJECT
public:
    explicit QHistoryDatabaseWidget(tagDeviceInfo *info,QWidget *parent = 0);
    
signals:
    
public slots:
    void    load();
    void    save();
    void    database_count(int count);
    void    database_next();
    void    database_error(const QString &error);
    void    database_end();
protected:
    tagDeviceInfo       m_device_info;
    QDeviceManager  *m_device_manager;
    QProgressDialog *m_progress_dialog;
    QHistoryDatabaseView    *m_history_database_view;
};

#endif // QHISTORYDATABASEWIDGET_H
